Package com.cisco.pt.ipc.sim.impl
Class FlowMonitorDataImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.FlowMonitorDataImpl
- All Implemented Interfaces:
IPCObject,FlowMonitorData
Information provided by the PKI file:
\class FlowMonitorData
\brief FlowMonitorData tracks a monitor that has been assigned to an interface.
\example network().getDevice("Router0").getNetflowMonitorManager().getMonitorAt(0).getInterfaceInput("FastEthernet0/0", false)
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionFlowMonitorDataImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionintInformation provided by the PKI file:Information provided by the PKI file:getFlowAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:booleanhasInput()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanisIpv6()Information provided by the PKI file:booleanisSameMonitor(String intName, boolean isIpv6) Information provided by the PKI file:voidsetDirection(NetflowDirection direction) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
FlowMonitorDataImpl
public FlowMonitorDataImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getDirection
Information provided by the PKI file:
\brief Returns the direction of the flow. \return Netflow::ENetflowDirection, the direction of the flow. Flow directions: eInput = 0, eOutput = 1, eInputOutput = 2- Specified by:
getDirectionin interfaceFlowMonitorData- Returns:
- NetflowDirection Returns a NetflowDirection
-
setDirection
Information provided by the PKI file:
\brief Sets the direction of the flow. \param direction, the direction of the flow. Flow directions: eInput = 0, eOutput = 1, eInputOutput=2- Specified by:
setDirectionin interfaceFlowMonitorData- Parameters:
direction- Takes in a parameter of direction
-
getInterfaceName
Information provided by the PKI file:
\brief Returns the name of the interface. \return string, the name of the interface.- Specified by:
getInterfaceNamein interfaceFlowMonitorData- Returns:
- String Returns a String
-
getFlowCount
public int getFlowCount()Information provided by the PKI file:
\brief Returns the number of flows. \return string, the number of flows.- Specified by:
getFlowCountin interfaceFlowMonitorData- Returns:
- int Returns a int
-
getFlowAt
Information provided by the PKI file:
\brief Returns the flow at the specified index. \param index, the index of the flow of interest. \return NetflowFlow, the NetflowFlow object at the specified index.- Specified by:
getFlowAtin interfaceFlowMonitorData- Parameters:
index- Takes in a parameter of index- Returns:
- NetflowFlow Returns a NetflowFlow
-
getTotalFlowCount
public int getTotalFlowCount()Information provided by the PKI file:
\brief Returns the total number of flows that were created by this monitor on this interface. \return int, the total number of flows that were created by this monitor on this interface.- Specified by:
getTotalFlowCountin interfaceFlowMonitorData- Returns:
- int Returns a int
-
getWaterMarkCount
public int getWaterMarkCount()Information provided by the PKI file:
\brief Returns the number of watermarks. \return int, the number of watermarks.- Specified by:
getWaterMarkCountin interfaceFlowMonitorData- Returns:
- int Returns a int
-
getInactiveExpireCount
public int getInactiveExpireCount()Information provided by the PKI file:
\brief Returns the total number of flows that were closed due to inactivity. \return int, the total number of flows that were closed due to inactivity.- Specified by:
getInactiveExpireCountin interfaceFlowMonitorData- Returns:
- int Returns a int
-
getActiveExpireCount
public int getActiveExpireCount()Information provided by the PKI file:
\brief Returns the total number of flows that were closed due to long activity. \return int, the total number of flows that were closed due to long activity.- Specified by:
getActiveExpireCountin interfaceFlowMonitorData- Returns:
- int Returns a int
-
isIpv6
public boolean isIpv6()Information provided by the PKI file:
\brief Returns true if this flow monitor data is IPv6, otherwise false. \return bool, true if this flow monitor data is IPv6, otherwise false.- Specified by:
isIpv6in interfaceFlowMonitorData- Returns:
- boolean Returns a boolean
-
isSameMonitor
Information provided by the PKI file:
\brief Returns true if the specified interface is the same flow monitor data, otherwise false. \param intName, intName can be one of the following plus an interface number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \param isIpv6, true if IPv6, false if IPv4. \return bool, true if the specified interface is the same flow monitor data, otherwise false.- Specified by:
isSameMonitorin interfaceFlowMonitorData- Parameters:
intName- Takes in a parameter of intNameisIpv6- Takes in a parameter of isIpv6- Returns:
- boolean Returns a boolean
-
hasInput
public boolean hasInput()Information provided by the PKI file:
\brief Returns true if this flow monitor data has input, otherwise false. \return bool, true if this flow monitor data has input, otherwise false.- Specified by:
hasInputin interfaceFlowMonitorData- Returns:
- boolean Returns a boolean
-
hasOutput
public boolean hasOutput()Information provided by the PKI file:
\brief Returns true if this flow monitor data has output, otherwise false. \return bool, true if this flow monitor data has output, otherwise false.- Specified by:
hasOutputin interfaceFlowMonitorData- Returns:
- boolean Returns a boolean
-
getFlowMonitor
Information provided by the PKI file:
\brief Returns the flow monitor associated with this flow monitor data. \return FlowMonitor, the FlowMonitor object associated with this flow monitor data.- Specified by:
getFlowMonitorin interfaceFlowMonitorData- Returns:
- FlowMonitor Returns a FlowMonitor
-